import React from 'react';

// 券池审批-详情
import PoolDetailC from './pool/detail';
// 券池审批-编辑
import PoolEditC from './pool/edit';
// 指令限额审批-详情(限额无编辑)
import LimitApprovalC from './limitApproval';
// 交易对手基础信息审批-详情
import CounterpartyInfoDetailC from './counterparty/counterpartyInfoDetail';
// 交易对手基础信息审批-编辑
import CounterpartyInfoEditC from './counterparty/counterpartyInfoEdit';
// 交易对手黑白名单审批-详情
import PersonalBWdetailC from './counterparty/personalBWdetail';
// 交易对手黑白名单审批-编辑
import PersonalBWeditC from './counterparty/personalBWedit';
// 交易对手授信额度审批-详情
import CreditSettingDetailC from './counterparty/creditSettingDetail';
// 交易对手授信额度审批-编辑
import CreditSettingEditC from './counterparty/creditSettingEdit';
// 交易所质押式回购指令-详情
import BuyBackOrderExchange from './buybackExchange/buybackExchangeDetail';

export default {
  config: [
    {
      type: '1', // 券池审批
      title: '券池审批',
      detail: (props) => <PoolDetailC {...props} />,
      edit: (props) => <PoolEditC {...props} />,
      editLayout: 'popUp', // 编辑以弹出模态框的形式展现
      needTitle: false, // 是否需要展示一级标题（如不需要，那么在模块内部添加标题
    },
    {
      type: '2', // 指令限额审批
      title: '指令限额审批',
      detail: (props) => <LimitApprovalC {...props} />,
      needTitle: true,
    },

    {
      type: '3', // 交易对手基础信息审批
      title: '交易对手基础信息审批-新增',
      detail: (props) => <CounterpartyInfoDetailC {...props} />,
      edit: (props) => <CounterpartyInfoEditC {...props} />,
      editLayout: 'inLine', // 编辑以内嵌页面的形式展现
      needTitle: true,
    },
    {
      type: '4', // 交易对手基础信息审批
      title: '交易对手基础信息审批-修改',
      detail: (props) => <CounterpartyInfoDetailC {...props} />,
      edit: (props) => <CounterpartyInfoEditC {...props} />,
      editLayout: 'inLine', // 编辑以内嵌页面的形式展现
      needTitle: true,
    },
    {
      type: '5', // 交易对手基础信息审批
      title: '交易对手基础信息审批-删除',
      detail: (props) => <CounterpartyInfoDetailC {...props} />,
      edit: (props) => <CounterpartyInfoEditC {...props} />,
      editLayout: 'inLine', // 编辑以内嵌页面的形式展现
      needTitle: true,
    },
    {
      type: '6', // 交易对手黑白名单审批
      title: '交易对手黑名单审批-新增',
      detail: (props) => <PersonalBWdetailC {...props} />,
      edit: (props) => <PersonalBWeditC {...props} />,
      editLayout: 'popUp',
      needTitle: true,
    },
    {
      type: '7', // 交易对手黑白名单审批
      title: '交易对手黑名单审批-删除',
      detail: (props) => <PersonalBWdetailC {...props} />,
      edit: (props) => <PersonalBWeditC {...props} />,
      editLayout: 'popUp',
      needTitle: true,
    },
    {
      type: '8', // 交易对手黑白名单审批
      title: '交易对手白名单审批-新增',
      detail: (props) => <PersonalBWdetailC {...props} />,
      edit: (props) => <PersonalBWeditC {...props} />,
      editLayout: 'popUp',
      needTitle: true,
    },
    {
      type: '9', // 交易对手黑白名单审批
      title: '交易对手白名单审批-删除',
      detail: (props) => <PersonalBWdetailC {...props} />,
      edit: (props) => <PersonalBWeditC {...props} />,
      editLayout: 'popUp',
      needTitle: true,
    },
    {
      type: '10', // 交易对手基础信息审批
      title: '交易对手授信设置审批-新增',
      detail: (props) => <CreditSettingDetailC {...props} />,
      edit: (props) => <CreditSettingEditC {...props} />,
      editLayout: 'popUp', // 编辑以内嵌页面的形式展现
      needTitle: true,
    },
    {
      type: '11', // 交易对手基础信息审批
      title: '交易对手授信设置审批-修改',
      detail: (props) => <CreditSettingDetailC {...props} />,
      edit: (props) => <CreditSettingEditC {...props} />,
      editLayout: 'popUp', // 编辑以内嵌页面的形式展现
      needTitle: true,
    },
    {
      type: '12', // 交易对手基础信息审批
      title: '交易对手授信设置审批-删除',
      detail: (props) => <CreditSettingDetailC {...props} />,
      edit: (props) => <CreditSettingEditC {...props} />,
      editLayout: 'popUp', // 编辑以内嵌页面的形式展现
      needTitle: true,
    },
    {
      type: '13', // 交易所质押式回购 无编辑(暂时这么写，如果指令有多个子流程，每个流程不同的指令 直接取13不对)
      title: '交易所质押式回购指令',
      detail: (props) => <BuyBackOrderExchange {...props} />,
      needTitle: true,
    },
  ],
};
